package com.indusfo.spc.mapper;

import com.indusfo.spc.pojo.InspectWorkDetail;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface InspectWorkDetailMapper {

    int insertSelective(InspectWorkDetail record);

    int updateByPrimaryKeySelective(InspectWorkDetail record);

    // 批量新增
    int insertInspectWorkDetail(@Param("inspectWorkId")Integer inspectWorkId,@Param("inspectIds") Integer[] inspectIds);
    // 通过ID查询明细
    List<Integer> queryByInspectWork(Integer inspectWorkId);
    // 删除
    int defineInspectWorkDetail(@Param("inspectWorkId")Integer inspectWorkId,@Param("inspectIds") Integer[] inspectIds,@Param("dataState") Integer dataState);
    // 查询
    List<InspectWorkDetail> queryInspectWorkDetail(InspectWorkDetail inspectWorkDetail);
    // 计数
    int countInspectWorkDetail(InspectWorkDetail inspectWorkDetail);
    // 根据点检ID查询
    int selectByInspectId(@Param("inspectIds")Long[] inspectIds);
    // 新  批量新增明细
    int insertInspectWorkDetailList(@Param("inspectWorkDetailList")List<InspectWorkDetail> inspectWorkDetailList);
    // 新  批量删除明细
    void defineInspectWorkDetailList(@Param("inspectWorkDetailList")List<InspectWorkDetail> inspectWorkDetailList, @Param("dataState")Integer dataState);
    // 新  批量修改明细
    void updateInspectWorkDetailList(@Param("inspectWorkDetailList")List<InspectWorkDetail> inspectWorkDetailList);
}